package com.aoip.telemetry.telemetry.entity.common;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @ClassName AttAdBaseEntity
 * @Author chenbai
 * @Date 2020/11/30 15:14
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("att_ad_base")
@ApiModel(description = "行政区划实体类")
public class AttAdBaseEntity {


    @TableId(value = "ad_code", type = IdType.NONE)
    @ApiModelProperty("行政区编码")
    private String adCode;

    @TableField(value = "ad_name")
    @ApiModelProperty("行政区名称")
    private String adName;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(exist = false)
    @ApiModelProperty("子级行政区集合")
    private List<AttAdBaseEntity> children;

}
